<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>网站后台管理中心- Powered by UUASK</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link href="/<?php echo C('UU_ADMINTPL_DIR');?>/public/css/common.css" rel="stylesheet" type="text/css">
<script src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/jquery.min.js"></script>
<script src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/jquery.highlight-3.js"></script>
<script src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/jquery.vtip-min.js"></script>
<script src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/jquery.dialog.js"></script>
<!--[if lt IE 9]>
  <script type="text/javascript" src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/PIE.js"></script>
  <script type="text/javascript">
    (function($){
        $.pie = function(name, v){
            // 如果没有加载 PIE 则直接终止
            if (! PIE) return false;
            // 是否 jQuery 对象或者选择器名称
            var obj = typeof name == 'object' ? name : $(name);
            // 指定运行插件的 IE 浏览器版本
            var version = 9;
            // 未指定则默认使用 ie10 以下全兼容模式
            if (typeof v != 'number' && v < 9) {
                version = v;
            }
            // 可对指定的多个 jQuery 对象进行样式兼容
            if ($.browser.msie && obj.size() > 0) {
                if ($.browser.version*1 <= version*1) {
                    obj.each(function(){
                        PIE.attach(this);
                    });
                }
            }
        }
    })(jQuery);
    if ($.browser.msie) {
      $.pie('.pie_about');
    };
  </script>
<![endif]-->
<script src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/jquery.disappear.tooltip.js"></script>
<script src="/<?php echo C('UU_ADMINTPL_DIR');?>/public/js/common.js"></script>
</head>
<body>
<div class="allpagetop">问答管理<strong>/</strong>回答列表</div>
<div class="admin_main_nr_dbox">
 	    <div class="pagetit">
	        <div class="ptit">回答列表</div>
				<div class="topnav">
			       <!--  <a href="<?php echo RU('answer/add');?>" <?php if(ACTION_NAME == 'add'): ?>class="select"<?php endif; ?>>添加</a>
					  <a href="<?php echo RU('answer/lists');?>" <?php if(ACTION_NAME == 'lists'): ?>class="select"<?php endif; ?>>列表</a> -->
				    <div class="clear"></div>
				</div>
	        <div class="clear"></div>
	    </div>
		
  
	
	
	<div class="seltpye_x">
        <div class="left">回答筛选</div>    
        <div class="right">
        <a href="<?php echo P(array('optimal'=>''));?>" <?php if($_GET['optimal']== ''): ?>class="select"<?php endif; ?>>不限</a>
        <a href="<?php echo P(array('optimal'=>'0'));?>" <?php if($_GET['optimal']== '0'): ?>class="select"<?php endif; ?>>普通答案</a>
        <a href="<?php echo P(array('optimal'=>'1'));?>" <?php if($_GET['optimal']== '1'): ?>class="select"<?php endif; ?>>最佳答案</a>
         
        <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
	
    <form id="form1" name="form1" method="post" action="<?php echo RU('answer/delete');?>">
	
	  <div class="admin_list_th">
	    <div class="td1" style=" width:30%;"><label id="chkAll" class="left_txt_td"><input type="checkbox" name="chkAll"  id="chk" title="全选/反选" />回复内容</label></div>
		<div class="td2" style=" width:25%;">所属问题</div>
		<div class="td4" style=" width:10%;">赞</div>
		<div class="td4" style=" width:15%;">回复会员</div>
		<div class="td3" style=" width:10%;">回复时间</div>		
		<div class="td5" style=" width:10%;">
		<div class="admin_list_right">操作</div>
		</div>
	  <div class="clear"></div>
	  </div>
	  
	  
	    <?php if(is_array($lists["list"])): $i = 0; $__LIST__ = $lists["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><div class="admin_list_tr link_bk">
						<div class="td1" style=" width:30%;">
						  <div class="left_txt_td striking">
								<input name="id[]" type="checkbox" id="id" value="<?php echo ($list["id"]); ?>"  />
								<?php if($list["optimal"] == '1'): ?><span class="userOPT"><?php echo ($list["content"]); ?></span>
								<?php else: ?>
								<?php echo ($list["content"]); endif; ?>
								
						  </div>
						</div>
						<div class="td2" style=" width:25%;">
						<a href="<?php echo ($list["question"]["url"]); ?>" target="_blank" ><?php echo ((isset($list["question"]["title"]) && ($list["question"]["title"] !== ""))?($list["question"]["title"]):"问题已删除"); ?></a>
						</div>
					 
							<div class="td3" style=" width:10%;">
						 <span class="userPRA"><?php echo ($list["praise"]); ?></span>
						</div>
						 <div class="td3" style=" width:15%;">
						  <span class="userLV">LV<?php echo ($list["user"]["exp_lv"]); ?></span>
						  <a href="<?php echo ($list["user"]["user_url"]); ?>" target="_blank" ><?php echo ($list["user"]["username"]); ?></a>
						 </div>
						 <div class="td3" style=" width:10%;">
						 <?php echo ($list["addtime_str"]); ?>
						 </div>
				 
					   
						<div class="td5" style=" width:10%;">
									  <div class="admin_list_right link_blue">
									 <a href="<?php echo RU('answer/delete',array('id'=>$list['id']));?>" onclick="return confirm('你确定要删除吗？')">删除</a>
									  </div>
						</div>
					  <div class="clear"></div>
					  </div><?php endforeach; endif; else: echo "" ;endif; ?>
	  
 
      
  </form>
  
  
    <?php if(empty($lists["list"])): ?><div class="admin_list_no_info">没有任何信息！</div><?php endif; ?>
	
	
	
	<div class="admin_list_foot">
			  <div class="btnbox">
				  
				 <input type="button"  class="admin_submit" id="J_btn_del"   value="删除"/>
			  </div>
			  
			  
			  
	          <div class="footso">
			  			<form action="<?php echo RU('answer/lists');?>" method="get">
						<div class="sobox">
							<input name="key" type="text"  class="sinput" maxlength="10" value="<?php echo ($_GET['key']); ?>"/>
							<input name="key_type" id="J_key_type_id" type="hidden" value="<?php echo ((isset($_GET['key_type']) && ($_GET['key_type'] !== ""))?($_GET['key_type']):"1"); ?>" />
							<input name="key_type_cn" id="J_key_type_cn" type="hidden" value="<?php echo ((isset($_GET['key_type_cn']) && ($_GET['key_type_cn'] !== ""))?($_GET['key_type_cn']):"内容"); ?>" />
							<input name="" type="submit" value=""  class="sobtn"/>
							<div class="sotype" id="J_key_click"><?php echo ((isset($_GET['key_type_cn']) && ($_GET['key_type_cn'] !== ""))?($_GET['key_type_cn']):"内容"); ?></div>
							
							
							
							
							
							<div class="mlist" id="J_mlist">
							<ul>
							<li id="1" title="内容">内容</li>
							<li id="2" title="UID">UID</li>
							</ul>
							</div>
						</div>
						</form>
			  </div>
	</div>
	
 
    <div class="uupage"><?php echo ($lists["page"]); ?></div>
</div>
<div class="footer link_lan">
Powered by <a href="http://www.zgxmall.com" target="_blank"><span style="color:#009900">中港星企业服务</span><span style="color: #FF3300">论坛</span></a> <?php echo C('UU_VERSION');?>
</div>
</body>
</html>

 
<script type="text/javascript">
    $(document).ready(function()
    {	
        //点击批量取删除   
        $("#J_btn_del").click(function(){
			
            if (confirm('你确定要删除吗？'))
            {
				$("form[name=form1]").attr("action","<?php echo RU('answer/delete');?>").submit();
            }
        });
		 
		 
		
		 
		
    });
</script>
</body>
</html>